package com.voyage.common.constant;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;


/**
 *@Author: kangb on 2021/10/8 20:13
 *@param:
 *@return:
 *@Description: 基类
 */
@Data
public class BaseDO {

    @TableId(type = IdType.ID_WORKER)
    private Long id;

    @TableField(value = "created_time",fill = FieldFill.INSERT)
    private Date createdTime;

    @TableField(value = "updated_time",fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

    @TableField(value = "deleted")
    private int isDeleted;

    @TableField(value = "version")
    @Version
    private int version;
}
